package com.usts.edu.eb.service.impl;

import com.usts.edu.eb.service.IUserService;
import com.usts.edu.mapper.UserMapper;
import com.usts.edu.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by lenovo on 2019/5/25.
 */
@Service("userService")
@Transactional
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User findById(Integer id) {
        return userMapper.finById(id);
    }

    @Override
    public void register(String username, String password) {

    }
}
